package repertory.android.ericchen.androidrepertory.util;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;

/**
 * className:
 * author: Ericchen
 * description:
 * date: 2017/3/6 14:13
 * update: 2017/3/6
 * version:
 */
public class D2NavigationUtils {
    public static void startForActivity(Context context,Class cl){
        Intent intent = new Intent();
        intent.setClass(context,cl);
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(intent);
    }
}
